From: Lars Ingebrigtsen Date: Sat, 13 Jul 2019 14:20:53 +0000 (+0200) Subject: Fix typo in sh-assignment-regexp X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~19^2~2337 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=194f370a3da72d560975adc2835254ce251881a7;p=emacs.git Fix typo in sh-assignment-regexp * lisp/progmodes/sh-script.el (sh-assignment-regexp): Fix typo in bash regexp that inhibited fontification of stuff like foo.=bar (bug#31710). --- diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el index ae90531a7fe..64608f1930f 100644 --- a/lisp/progmodes/sh-script.el +++ b/lisp/progmodes/sh-script.el @@ -582,7 +582,7 @@ This is buffer-local in every such buffer.") ;; actually spaces are only supported in let/(( ... )) (ksh88 . ,(concat "\\<\\([[:alnum:]_]+\\)\\(\\[.+\\]\\)?" "[ \t]*\\(?:[-+*/%&|~^]\\|<<\\|>>\\)?=")) - (bash . "\\<\\([[:alnum:]_]+\\)\\(\\[.+\\]\\)?\\+?=") + (bash . "\\<\\([[:alnum:]_]+\\)\\([.+]\\)?\\+?=") (rc . "\\<\\([[:alnum:]_*]+\\)[ \t]*=") (sh . "\\<\\([[:alnum:]_]+\\)=")) "Regexp for the variable name and what may follow in an assignment.